<template>
<div>
  <div id="app">
    <TopBase></TopBase>
  </div>
</div>
</template>

<script>
//1.导入需要使用的.vue文件
import TopBase from "./components/TopBase";

export default {
  name:'App',
  methods: {},
  //2.注册组件
  components: {
    TopBase,
  },
};
</script>

<style>
  * {
    margin: 0;
    padding: 0;
  }

  body {
    width: 1000px;
    margin: 0 auto;
    border: 1px solid lightgray;
  }
</style>
